package com.sdweizan.sdk.bytedance.bean.settle;

import com.alibaba.fastjson.annotation.JSONField;
import com.sdweizan.sdk.bytedance.bean.BdBaseResponse;
import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@Data
public class BdQuerySettleResponse extends BdBaseResponse {
  @JSONField(name = "settle_info")
  private SettleInfo settleInfo;

  @NoArgsConstructor
  @Data
  public static class SettleInfo {
    // 平台侧分账单号
    @JSONField(name = "settle_no")
    private String settleNo;

    @JSONField(name = "settle_amount")
    private Long settleAmount;
    // 分账状态枚举值：
    // SUCCESS：成功
    // FAIL：失败
    // PROCESSING：处理中
    @JSONField(name = "settle_status")
    private String settleStatus;
    // 具体分账详情
    @JSONField(name = "settle_detail")
    private String settleDetail;
    // 分账成功时间戳，否则为0
    @JSONField(name = "settled_at")
    private Long settledAt;
    // 技术服务费金额 + 商户与平台约定的抽佣金额，单位为分
    @JSONField(name = "rake")
    private Long rake;
    // 达人抽佣金额，单位为分
    @JSONField(name = "commission")
    private Long commission;
    // 开发者自定义字段，回调原样回传
    @JSONField(name = "cp_extra")
    private String cpExtra;

    @JSONField(name = "msg")
    private String msg;
  }
}
